package com.atgm.mall.gmmailmember.feign.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class ArticleFeignVo implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private String articleTitle;

    private String defImg;

    /**
     * 用户id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long memberId;

    /**
     * 浏览数量
     */
    private Integer viewCount;

    /**
     * 点赞数量
     */
    private Integer thumbsCount;

    /**
     * 评论数量
     */
    private Integer commentCount;

    /**
     * 是否删除：0：否；1：是
     */
    private Integer deleted;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date updateTime;

}
